package com.demo.java8.stream;

/**
 * Created by churcy on 2018/3/22.
 */
public class Dish {

    private int calories;
    private String name;
    private boolean vegetarian;
    private Type type;

    public Dish(String name,boolean vegetarian,int calories,Type type) {
        this.calories = calories;
        this.name = name;
        this.vegetarian = vegetarian;
        this.type = type;
    }

    public int getCalories() {
        return calories;
    }

    public void setCalories(int calories) {
        this.calories = calories;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public enum Type {
        MEAT("meet"), OTHER("other"), FISH("fish");

        private String name;

        private Type(String name) {
            this.name = name;
        }
    }
}
